Skip to content

feat(fmt): add --clear-cache option - #634

Merged
chenjiahan merged 5 commits into
mainfrom
chenjiahan/feat-fmt-clear-cache
Nov 14, 2026
Merged

chenjiahan merged 5 commits into
mainfrom
chenjiahan/feat-fmt-clear-cache

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Motivation

Clearing the formatting cache currently requires locating and deleting it manually. --no-cache only bypasses the cache for one run and leaves existing entries unchanged.

Changes

Add rs fmt --clear-cache to delete the formatter's cache file and exit without formatting or loading the configuration. It supports --cache-location, preserves other files, and succeeds when the cache is absent. Conflicting formatting modes and file arguments are rejected.

Add focused CLI tests and help text. Documentation is tracked separately in #635.

Validated with pnpm build, pnpm --filter rstack build:native, pnpm test (447 passed, 1 skipped), and pnpm check.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T09:52:15.895477Z f04a71e New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: f04a71e
Status: ✅  Deploy successful!
Preview URL: https://4a17289d.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-feat-fmt-clear-ca.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 1ff9ea0 into main Nov 14, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-fmt-clear-cache branch November 14, 2026 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant